package com.xyazm.inventory.api;

import com.xyazm.common.core.JsonResult;
import com.xyazm.inventory.domain.param.DeductProductParam;
import com.xyazm.inventory.domain.param.ReleaseProductStockParam;

/**
 * 库存服务对外暴露的接口
 * @author xuyou
 * @date 2022年04月26日 21:31
 */
public interface IInventoryApi {

    /**
     * 扣减商品库存
     * @author xuyou
     * 2022/5/2 0002 15:52
     * @param param
    */
    JsonResult<Void> deductProductStock(DeductProductParam param);


    /**
     * 释放商品库存
     * @author xuyou
     * @date: 2022/7/1 11:28
     * @param: param
     */
    JsonResult<Void> releaseProductStock(ReleaseProductStockParam param);

}
